package org.simple.test.jdbc

import org.nutz.dao.Dao
import org.nutz.dao.impl.NutDao

import javax.sql.DataSource

class TestDao extends NutDao {
    private DataSource dataSource;
    private Dao dao;

    DataSource getDataSource() {
        return dataSource;
    }

    void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    Dao getDao() {
        return new NutDao(dataSource);
    }
}
